<%@page import="Entities.*"%>
<%@page import="Helpers.*"%>
<%@page import="Hibernate.*"%>
<%@page import="java.util.List"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

   <li class="likert">
      <table cellspacing="0">
        <thead>
            <tr>
                <th>Enquete naam</th>
                <td>Feedback</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
        </thead>
        <tbody>
            <%
              EnqueteHelper ehelper = new EnqueteHelper();
              
              List<Enquetes> enquetes = ehelper.getEnquetesPerCursus(Integer.parseInt(id));
              for (Enquetes enquete : enquetes) {
                   Cursussen cursus = cHelper.getCursus(enquete.getCursussen().getId());
            %>


            <tr>
                <th>
                    <%=enquete.getNaam() %>
                </th>
                <td>
                    <a href="webpages/Enquete/toonFeedback.jsp?eid=<%=enquete.getId()%>">Lees</a>
                </td>
                <td>
                    <a href="webpages/Enquete/showEnquete.jsp?eid=<%= enquete.getId()%>"><img src="images/edit.png" border="0" /></a>
                    <a href="webpages/Enquete/deleteEnquete.jsp?id=<%= enquete.getId()%>"><img src="images/delete.png" border="0" /></a>
                </td>
                <td>
                    <a class="btn" href="webpages/EnqueteVragen/showEnquetteVragen.jsp?eid=<%=enquete.getId()%>">Vragen</a>
                </td>
            </tr>
         <% } %>
        </tbody>
    </table>
</li>

<p><a class="btn" href="webpages/Enquete/voegEnqueteToe.jsp">Toevoegen enquete</a></p>
